package com.kayt.cyberBar.cuser.business.service;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.common.ServerResponse;
import com.kayt.cyberBar.cuser.business.entity.req.vo.ExamRuleReqVO;
import com.kayt.cyberBar.cuser.business.entity.rsp.vo.ExamRuleOperateRspVO;
import com.kayt.cyberBar.cuser.business.entity.rsp.vo.ExamRuleRspVO;

@Path("/examRule")
public interface ExamRuleService {
	@GET
	@Path("getExamRuleList.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	public ServerResponse<PageData<ExamRuleRspVO>> getExamRuleList(@QueryParam("")ExamRuleReqVO examRuleReqVO);

	@POST
	@Path("addExamRule.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	public ServerResponse<ExamRuleRspVO> addExamRule(ExamRuleReqVO examRuleReqVO);
	
	@POST
	@Path("updateExamRule.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	public ServerResponse<ExamRuleRspVO> updateExamRule(ExamRuleReqVO examRuleReqVO);
	
	@GET
	@Path("deleteExamRule.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	public ServerResponse<String> deleteExamRule(@QueryParam("id")String examRuleId);
	@GET
	@Path("getExamRuleOperateData.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	public ServerResponse<ExamRuleOperateRspVO> getExamRuleOperateData();
}
